package com.dycx.api;

public interface ILock {

    /**
     * 获取锁
     *
     * @param timeoutSrc
     * @return
     */
    boolean tryLock(long timeoutSrc);

    /**
     * 释放锁
     */
    void unlock();

}